package com.fruit.controller;

import com.fruit.config.TestConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: 测试配置修改
 * @Author: LJ
 * @Date: 2018/11/2 15:05
 * @version:
 */
@RestController
@RequestMapping("/test")
public class TestController {
    @Autowired
    private TestConfig testConfig;
    @GetMapping("/print")
    public String print(){
        return "id= " + testConfig.getId() + " name= " + testConfig.getName();
    }
}
